package com.dabaozhan.modules.wx_app.entity;

import java.math.BigDecimal;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.dabaozhan.modules.wx_app.base.AbstractBaseEntity;

public class InventoryEntity extends AbstractBaseEntity{
	private static final long serialVersionUID = 1L;
	private String id;
	@NotEmpty(message="userId不能为空")
	private String userId;
	@NotEmpty(message="categoryId不能为空")
	private String categoryId;
	@NotEmpty(message="parentId不能为空")
	private String parentId;
	@NotEmpty(message="categoryName不能为空")
	private String categoryName;
	@NotNull(message="num不能为空")
	private Integer num;
	@NotNull(message="unitWeight不能为空")
	private BigDecimal unitWeight;
	@NotNull(message="countType不能为空")
	private Integer countType;
	@NotNull(message="totalWeight不能为空")
	private BigDecimal totalWeight;
	//预警值 两位小数
	private BigDecimal warning;
	//风险状态 1:正常 2:风险大
	private Integer riskStatus;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getCategoryId() {
		return categoryId;
	}
	public void setCategoryId(String categoryId) {
		this.categoryId = categoryId;
	}
	public String getParentId() {
		return parentId;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
	public String getCategoryName() {
		return categoryName;
	}
	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}
	public Integer getNum() {
		return num;
	}
	public void setNum(Integer num) {
		this.num = num;
	}
	public BigDecimal getUnitWeight() {
		return unitWeight;
	}
	public void setUnitWeight(BigDecimal unitWeight) {
		this.unitWeight = unitWeight;
	}
	public Integer getCountType() {
		return countType;
	}
	public void setCountType(Integer countType) {
		this.countType = countType;
	}
	public BigDecimal getTotalWeight() {
		return totalWeight;
	}
	public void setTotalWeight(BigDecimal totalWeight) {
		this.totalWeight = totalWeight;
	}
	public BigDecimal getWarning() {
		return warning;
	}
	public void setWarning(BigDecimal warning) {
		this.warning = warning;
	}
	public Integer getRiskStatus() {
		return riskStatus;
	}
	public void setRiskStatus(Integer riskStatus) {
		this.riskStatus = riskStatus;
	}
}
